//
// Copyright (C) [2024] Xingyun Integrated Circuit, Inc.
//
// GreenCode was a private technology asset of Xingyun Integrated Circuit， Inc （Confidential）
//  Author: Shawn.Tan
//  Date : 2025.10.28
//
//  History : Initial Version 2025.10.28
//
//
#include "ReExecutionUnit.h"

#include "Constraint.h"
#include "Log.h"

using namespace std;

/*!
  \file ReExecutionUnit.cc
  \brief Code managing various re-execution units, such as loop, subroutine, linear block.
*/


namespace Green {

  ReExecutionUnit::ReExecutionUnit()
    : mId(0), mBeginAddress(0), mEndAddress(0), mpVaRanges(nullptr), mpPaRanges()
  {
    mpVaRanges = new ConstraintSet();
    mpPaRanges = new ConstraintSet();
  }

  ReExecutionUnit::~ReExecutionUnit()
  {
    delete mpVaRanges;
    delete mpPaRanges;
  }

}
